#pragma once
#include "tinydbmapper.h"
#include "TinyDevice.h"

namespace DBLayer {

class CExtensionMapper :
	public CTinyDBMapper<HAL::CTinyDevice>
{
public:
	CExtensionMapper()
	{
		selectStr = "select e.cardid,cardsn,cardname, extnumber, channelID from extension as e join voicecard as v on e.cardid = v.cardid";
	};
	virtual ~CExtensionMapper(void){}
	virtual std::vector<HAL::CTinyDevice*>* GetAll();
};
//std::string CExtensionMapper::selectStr = "select * from extension";

}